package cn.dong.edu.service;

import cn.dong.edu.domain.Teacher;
import cn.dong.edu.domain.query.QueryTeacher;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author You-Dong
 * @since 2021-01-30
 */
public interface TeacherService extends IService<Teacher> {

    /**
     * 分页组合查询
     * @param current
     * @param size
     * @param queryTeacher
     * @return
     */
    IPage<Teacher> findByCondition(Integer current, Integer size, QueryTeacher queryTeacher);

    /**
     * 查询前4名热点讲师
     * @return
     */
    List<Teacher> getHotTeacher();
}
